package forg;

import robocode.Robot;
import robocode.ScannedRobotEvent;

/**
 * author : lianhui.klh
 * time   : 2017-10-26 18:00
 */
public class TestRobot extends Robot{

    public void run(){

        while (true){

            turnGunRight(360);
        }
    }


    @Override
    public void onScannedRobot(ScannedRobotEvent event) {
        out.println(getHeading());
        out.println(event.getBearing());
    }
}
